import { ElMessage, ElMessageBox, ElNotification } from "element-plus";
import { App } from "vue";

export default (app: App): void => {
  //文档说明:https://cn.vuejs.org/api/application.html#app-config-globalproperties
  app.config.globalProperties.$message = ElMessage;
  app.config.globalProperties.$notify = ElNotification;
  app.config.globalProperties.$confirm = ElMessageBox.confirm;
  app.config.globalProperties.$alert = ElMessageBox.alert;
  app.config.globalProperties.$prompt = ElMessageBox.prompt;
};
